package doxygenxml.compound;

/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/

// <summary>
// </summary>
public enum DoxMemberKind {
	Define,
	Property,
	event_,
	Variable,
	Typedef,
	enum_,
	Function,
	Signal,
	Prototype,
	Friend,
	Dcop,
	Slot,
	interface_,
	Service;

	// Converts a DoxMemberKind enumeration to a string (suitable for the XML document)
	public static String DoxMemberKindToString(doxygenxml.compound.DoxMemberKind enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		switch(enumValue)
		{
		case Define:
	    	return "define";
		case Property:
	    	return "property";
		case event_:
	    	return "event";
		case Variable:
	    	return "variable";
		case Typedef:
	    	return "typedef";
		case enum_:
	    	return "enum";
		case Function:
	    	return "function";
		case Signal:
	    	return "signal";
		case Prototype:
	    	return "prototype";
		case Friend:
	    	return "friend";
		case Dcop:
	    	return "dcop";
		case Slot:
	    	return "slot";
		case interface_:
	    	return "interface";
		case Service:
	    	return "service";
		default:
	    	throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxMemberKind [" + enumValue.toString() + "]");
		}
	}
	
	// 	Converts a string to a DoxMemberKind enumeration
	public static DoxMemberKind DoxMemberKindFromString(String enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		String enumCollapsedValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.collapse(enumValue);
		if (enumCollapsedValue.equals("define"))
			return Define;
		else if (enumCollapsedValue.equals("property"))
			return Property;
		else if (enumCollapsedValue.equals("event"))
			return event_;
		else if (enumCollapsedValue.equals("variable"))
			return Variable;
		else if (enumCollapsedValue.equals("typedef"))
			return Typedef;
		else if (enumCollapsedValue.equals("enum"))
			return enum_;
		else if (enumCollapsedValue.equals("function"))
			return Function;
		else if (enumCollapsedValue.equals("signal"))
			return Signal;
		else if (enumCollapsedValue.equals("prototype"))
			return Prototype;
		else if (enumCollapsedValue.equals("friend"))
			return Friend;
		else if (enumCollapsedValue.equals("dcop"))
			return Dcop;
		else if (enumCollapsedValue.equals("slot"))
			return Slot;
		else if (enumCollapsedValue.equals("interface"))
			return interface_;
		else if (enumCollapsedValue.equals("service"))
			return Service;
		else
			// ##HAND_CODED_BLOCK_START ID="Default Enum doxygenxml.compound.DoxMemberKind"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxMemberKind [" + enumValue + "]");
			// ##HAND_CODED_BLOCK_END ID="Default Enum doxygenxml.compound.DoxMemberKind"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
	}
}

